package com.anxin.baseproject2.modle.manager;

import android.content.Context;

/**
 * Model层入口管理所有的数据操作
 * Created by Huang、 on 2017/4/20.
 */
public class AClient {
    private static AClient instance;
    private static Context mContext;
    private AClient(){}

    //manager
    private UserManager userManager;



    public static void init(Context context){
        mContext=context;
    }

     public static AClient getInstance(){
        synchronized (AClient.class) {
            if (instance == null) {
                synchronized (AClient.class) {
                    if (instance == null) {
                        instance = new AClient();
                    }
                }
            }
        }
        return instance;
    }


    public UserManager userManager(){
        if(userManager==null){
            userManager=new UserManager();
        }
        return userManager;
    }

}
